package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@Table(name = "cn_dmc_csun_body_group")
public class DmcCsunBodyGroup extends BaseEntity {

    /**
     * 0-自定义, 1-人
     */
    @Column(name = "bind_type")
    private Integer bindType;

    /**
     * PERSONAL - 个人, ENTERPRISE - 企业
     */
    @Column(name = "bind_way")
    private String bindWay;

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 绑定位置
     */
    private String location;

    /**
     * 超时时间,单位分钟
     */
    @Column(name = "time_out")
    private Integer timeOut;

    /**
     * 机构Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    /**
     * 触发时间 触发人感的时间
     */
    @Column(name = "touch_date")
    private Date touchDate;

    /**
     * 触发人感的设备编号
     */
    @Column(name = "device_no")
    private String deviceNo;

    /**
     * 触发人感设备Id
     */
    @Column(name = "device_id")
    private Long deviceId;

}